<?php if(!defined('WANYA_ROOT')) {exit('error!');}?>

<div class=containertitle><b><?php echo($pwd);?></b>
	<?php if(isset($updateSuc)):?><span class="actived">编辑成功。</span><?php endif;?>
</div>
<div class=line></div>
	<form action="lesson_arrange.php" name="signupform" id="signupform" method="post">
		<fieldset style="border:2px solid #0099ff;">
			<legend>课程信息</legend>
			<table style="margin-bottom: 5px;margin-left: 10px">
				<tr>
					<td>课程：</td><td>
						<input type="text" readonly = "readonly" name="course_name" id="course_name" value="<?php echo($lessonDetail["course_name"]);?>">　

					</td>
					<td width="40px"></td>
					<td>批次：</td><td>
						<input type="text" readonly = "readonly" name="course_name" id="course_name" value="<?php echo($lessonDetail["course_batch"]);?>">　
					</td>
					<td width="40px"></td>
					<td>节次：</td><td>
						<input type="text" readonly = "readonly" name="course_name" id="course_name" value="<?php echo($lessonDetail["lesson_num"]);?>">　
					</td>
				</tr>
			</table>
		</fieldset>
		<br>
	<table align="center">
		<tr>
			<td valign="top">
				作　　业：　　
			</td>
			<td>
				<textarea rows="5" cols="80" name="homework"><?php echo($lessonDetail["homework"]);?></textarea>
			</td>
		</tr>
		<tr>
			<td>
	　　　
			</td>
			<td>
				 　
			</td>
		</tr>
		<tr>
			<td valign="top">
				评　　语：　　
			</td>
			<td>
				<textarea rows="5" cols="80" name="review"><?php echo($lessonDetail["review"]);?></textarea>
			</td>
		</tr>
		<tr>
			<td>
				　　　
			</td>
			<td>
				<input type="hidden" name="action" id="action" value="homeWorkReviewEdit">
				<input type="hidden" name="mod" id="mod" value="commit">
				<input type="hidden" name="courseID" id="courseID" value="<?php echo($lessonDetail["course_id"]);?>">
				<input type="hidden" name="courseBatch" id="courseBatch" value="<?php echo($lessonDetail["course_batch"]);?>">
				<input type="hidden" name="lessonNum" id="lessonNum" value="<?php echo($lessonDetail["lesson_num"]);?>">
			</td>
		</tr>
		<tr>
			<td colspan="2" align="center">
				<input type="button" name="cancel" value="取消" onclick="formCancel()" class="button">	　　　
				<input type="button" name="confirm" value="确认" onclick="formCheck()" class="button">　　
			</td>
		</tr>
	</table>
	</form>
<script type="text/javascript">
	setTimeout(hideActived,2600);
	function formCheck()
	{
		$("#signupform").submit();
	}
	function formCancel(){
		history.go(-1);
	}
</script>